/*
 * @Author: tlm
 * @Date: 2020-09-09 09:10:17
 * @LastEditTime: 2020-09-19 15:45:03
 * @LastEditors: tlm
 * @Description: 
 * @FilePath: \S3DV_WipSurfer\src\utils\load\BlobLoader.js
 * @support by tlm
 */

import {WipAttLoader} from './WipAttLoader';
import ComponentSignals from '@/utils/componentSignals';

class BlobLoader{
    constructor()
    {
        this.loadGeoBlob=(geoBlob)=>{
            ComponentSignals.loadGeoBlobData.dispatch(geoBlob);
        };
        this.loadGltfBlob=(geoBlob)=>{
            ComponentSignals.loadGeoGltfData.dispatch(geoBlob);
        };
        this.loadAttBlob=(attBlob)=>{
            let jsData = WipAttLoader(attBlob);
            ComponentSignals.setAttribute.dispatch(jsData);
        };
        ComponentSignals.showTree.dispatch();
        ComponentSignals.showAttribute.dispatch();
    }
}
export {BlobLoader}